package projectmanager

class UserPageController {

def beforeInterceptor = [action:this.&auth]


def index() {
	redirect(controller: "project", action:"list")
	
}

def auth() {
def user = session["user"]

if((!user) || ( !(user.role == "User") )) {
flash.message = "You must have User level access to use these features"
redirect(uri: "/")
return false
}

}
}

